home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
pascal
/
tegl6b.zip
/
INTROPAK.EXE
/
lha
/
ANIMOOP.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-04-06
|
1KB
|
57 lines
{$F+}
USES videochk,
TGraph,
crt,
SoundUnt,
FastGrph,
TEGLMain,
TEGLUnit,
Animate,
TEGLIcon;
var BounceIcon : AnimateObject;
BEGIN
SetVideoChoices(TG_VGA,false);
easytegl;
setfillStyle(widedotfill,lightgray);
bar(0,0,getmaxx,getmaxy);
with BounceIcon do
begin
init;
addframe(@imageblankbut,-15,-3,14,37,10,0,0,black);
addframe(@imageblankbut,-15,3,14,37,10,0,0,black);
addframe(@imageblankbut,-15,3,14,37,10,0,0,black);
addframe(@imageblankbut,-15,-3,14,37,10,0,0,black);
sequence(1);
ResetSequence;
addframe(@imageblankbut,15,-3,14,37,10,0,0,black);
addframe(@imageblankbut,15,3,14,37,10,0,0,black);
addframe(@imageblankbut,15,3,14,37,10,0,0,black);
addframe(@imageblankbut,15,-3,14,37,10,0,0,black);
sequence(2);
Animateinit;
Origin(getmaxx div 2,getmaxy div 2);
ClearKeyBoardBuf;
while not keypressed do
begin
sequence(1);
ResetFrame(0);
Animate(Destination(36,0));
Beep(1500,1,1);
sequence(2);
ResetFrame(0);
Animate(Destination(560,0));
Beep(1500,1,1);
end;
end;
TEGLSupervisor;
END.